Skip to content

Configure web and API ports - #11

Merged
afurm merged 1 commit into
mainfrom
af/configurable-ports
May 5, 2026
Merged

Configure web and API ports#11
afurm merged 1 commit into
mainfrom
af/configurable-ports

Conversation

@afurm

@afurm afurm commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add separate WEB_PORT and API_PORT configuration for Vite and Fastify.
  • Keep previous defaults intact: web 5173, API 4141.
  • Update .env.example, README, and CONTRIBUTING to show 3000/3001 as an override example.

Why

Using only PORT made local overrides ambiguous because the web app and API need separate ports. This keeps the old out-of-the-box behavior while allowing a local .env to choose any web/API pair.

Validation

  • npm run typecheck
  • npm run build
  • Custom-port smoke check: Vite on 4300 successfully proxied /api/tasks to API on 4301.

@afurm
afurm marked this pull request as ready for review May 5, 2026 12:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09525d611b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread vite.config.ts Outdated
@afurm
afurm force-pushed the af/configurable-ports branch from 09525d6 to 4b3b83a Compare May 5, 2026 12:59
@afurm
afurm merged commit 293b2f6 into main May 5, 2026
1 check passed
@afurm
afurm deleted the af/configurable-ports branch May 5, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant